package com.bwda.dsrs.filecenter.domain.form.executionpolicy;

import com.bwda.dsrs.base.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
/**
 * @author Administrator
 */
@Data
@ApiModel(description = "执行策略管理")
public class ExecutionPolicyUpdateForm {

    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空")
    private Long executionPolicyId;

    @ApiModelProperty(value = "执行策略名称")
    private String executionPolicyName;

    @ApiModelProperty(value = "扫描类型")
    private Integer executionPolicyType;

    @ApiModelProperty(value = "执行周期id")
    private Long executionCycleTypeId;

    @ApiModelProperty(value = "执行天数")
    private Long executionDay;

    @ApiModelProperty(value = "执行时间")
    private String executionTime;

    @ApiModelProperty(value = "行数")
    private Integer lineNumber;

    @ApiModelProperty(value = "最后一次执行时间")
    private String lastExecutionTime;

    @ApiModelProperty(value = "任务状态 0：启用 1:停用")
    private Long taskStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "有效状态")
    private Long activeFlag;

    @ApiModelProperty(value = "创建人")
    private String createUserCode;

    @ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
    @DateTimeFormat(pattern = DateUtil.FORMAT)
    private Date createTime;

    @ApiModelProperty(value = "数据分组")
    private String restaskDbGroupPos;
}